<tagLib name="html" />
<div id="main-content">
    <div id="main" class="main">
        <!-- 修改密码 start -->
        <div class="spin-cont">
            <div class="user-hd">
                <h2>{$page_title}</h2>
            </div>
            <div class="user_zl">
                <form name="data_form" id="data_form" action="" method="POST">
                <dl class="clearfix">
                    <dt>用户名：</dt>
                    <dd>
                        <if condition="1 EQ $model[user_id]">
                            {$model.user_name}
                            <input type="hidden" id="user_name" name="user_name" value="{$model.user_name}" maxlength="36" autocomplete="off" class="bg-input w229"/>
                        <else/>
							<if condition="ACTION_NAME EQ 'edit' ">
								{$model.user_name}
								<input  type="hidden" id="user_name" name="user_name" value="{$model.user_name}" maxlength="36" autocomplete="off" class="bg-input w229"/>
							<else/>
								<input  type="text" id="user_name" name="user_name" value="{$model.user_name}" maxlength="36" autocomplete="off" class="bg-input w229"/>
							</if>
                        </if>
                    </dd>
                    <dd class="error_message" id="message_user_name"></dd>
                    <!-- <dd class="field_info" id="message_user_name_info">请输入3-10位字母、数字或下划线</dd> -->
                </dl>
                <dl class="clearfix">
                    <dt>密码：</dt>
                    <dd><input type="password" id="password" name="password" value="" autocomplete="off" maxlength="16" class="bg-input w229"/></dd>
                    <dd class="error_message" id="message_password"></dd>
                    <dd class="field_info" id="message_password_info">请输入6-16位字母、数字</dd>
                </dl>
                <dl class="clearfix">
                    <dt>姓名：</dt>
                    <dd><input type="text" id="nick_name" name="nick_name" value="{$model.nick_name}" maxlength="10" autocomplete="off" class="bg-input w229"/></dd>
                    <dd class="error_message" id="message_nick_name"></dd>
                    <dd class="field_info" id="message_nick_name_info">请输入1-10个字母、数字、中文或下划线</dd>
                </dl>
                <dl class="clearfix">
                    <dt>手机号码：</dt>
                    <dd><input type="text" id="mobile" name="mobile" value="{$model.mobile}" maxlength="11" autocomplete="off" class="bg-input w229"/></dd>
                    <dd class="error_message" id="message_mobile"></dd>
                    <dd class="field_info" id="message_mobile_info">请输入可用的手机号码</dd>
                </dl>
                <dl class="clearfix">
                    <dt>分组：</dt>
                    <dd>
                        <if condition="1 NEQ $user_id">
                            <html:select options="user_group_options" name="group_id" selected="model[group_id]" />
                        <else/>
                            {$user_group_options[$model[group_id]]}
                            <input type="hidden" name="group_id" value="{$model.group_id}" />
                        </if>
                        
                    </dd>
                </dl>
                <dl class="clearfix">
                    <dt></dt>
                    <dd>
                        <a href="javascript:;" class="gray-btn" id="submit_btn" onclick="saveUser()">确定</a>
                        <a href="javascript:;" class="gray-btn" onclick="reset('data_form')">取消</a>
                        <input type="hidden" name="user_id" id="user_id" value="{$user_id}" />
                    </dd>
                </dl>
                </form>
            </div>
        </div>
    </div>
</div>